<?php
function deslogar(){
	//if(isset($_COOKIE["LITURGIA"])) {
//		setcookie("LITURGIA", $_COOKIE["LITURGIA"], time() - 3600); 
//	}
	//session_start();
	
 	if (!(is_null($_SESSION["login"])) and (!(is_null($_SESSION["senha"])))){
 	 	unset($_SESSION["login"]);
		unset($_SESSION["senha"]);
		session_destroy();
		echo "<script language='javaScript'> alert ('deslogado');</script>";
	}
}
?>